package cn.miju.database.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * <pre>
 * 菜单
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-28 16:18
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_menu")
@EqualsAndHashCode(callSuper = true)
public class SysMenu extends AutoEntity {

    /**
     * 父菜单ID
     */
    private Long parentId;
    /**
     * 名称
     */
    private String name;
    /**
     * 标题
     */
    private String title;
    /**
     * 类型;menu：菜单 link：链接  iframe：内嵌页面
     */
    private String type;
    /**
     * 路径
     */
    private String path;
    /**
     * 图标
     */
    private String icon;
    /**
     * 元件
     */
    private String component;
}
